package com.yh.model;

import java.util.List;

import org.springframework.stereotype.Component;

@Component
public class Page<T> {
	private int pageTotal; //��ҳ����ҳ��
	private int pageSize; //ÿҳ��ʾ������
	private int pageCount; //����������
	private int pageIndex; //��ǰҳ��
	private List<T> pageList; //ÿҳ�鼮����
	
	
	public int getPageTotal() {
		return pageTotal;
	}
	public void setPageTotal(int pageTotal) {
		this.pageTotal = pageTotal;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageCount() {
		return pageCount;
		
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
		this.setPageTotal(this.pageCount % this.pageSize == 0 ? this.pageCount / this.pageSize : this.pageCount / this.pageSize + 1);
	}
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public List<T> getPageList() {
		return pageList;
	}
	public void setPageList(List<T> pageList) {
		this.pageList = pageList;
	}
	
	
}
